<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="shortcut icon" href="images/logo W.jpg" />
        <title>Work to Worker</title>
        <style>
            a:link {text-decoration:none;}
            #menudiv2:hover{background-color: #FF6600;color: #1A3665}
        </style>  
        <style type="text/css">
            @font-face {
                font-family: "jokerman";
                src: url('font/VIVALDII.TTF') format("truetype");
            } 
            @media screen and (-webkit-min-device-pixel-ratio:0)
            {
                #fix1 { margin-top: 0px }
                #logo,#address,#email,#level{margin-top: 26px}
                #phone, #des{margin-top: 23px}
                #contact {margin-top: 254px}
                #name{margin-top: 2px}
            }
            @-moz-document url-prefix()
            {
                #fix1 { margin-top: -20px }
            #logo,#address,#email, #level{margin-top:22px}
            #phone, #des{margin-top: 19px}
            #contact {margin-top: 251px}
            #number {margin-top: -3px}
            }
        </style>        
    </h:head>
    <h:body style="background-color:  #1A3665;">
        <f:view locale="#{languageBean.locale}">

            <div style="width: 1000px;margin: auto;margin-top: 20px;background-color: white;border-radius: 10px;-moz-border-radius: 10px">
                <ui:include src="headertemplate1.xhtml" />
                <h:form enctype="multipart/form-data"  style="font-size: 85% !important">
                    <div>
                        <ul style="margin-top: 50px;margin-left: -20px">
                            <li style="display: inline-block;width: 200px;vertical-align: top">
                                <ul>
                                    <li style="list-style: none;overflow: hidden;background-image: url('images/treeTabBg.gif');padding: 5px 0px 5px 55px;font-size: 20px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: #E9E9E9">Step 1 <img src="images/Pause.png" width="20" height="20" style="" alt="done"/></li>
                                    <li style="list-style: none;overflow: hidden;background-image: url('images/treeTabBg.gif');padding: 5px 0px 5px 55px;font-size: 20px;margin-top: 5px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: #E9E9E9">Step 2</li>

                                </ul>
                            </li>
                            <li style="display: inline-block;width: 670px;vertical-align: top;margin-left: 40px;border: 1px;border-style: double dashed;border-top-right-radius: 10px;-moz-border-top-left-radius: 10px;-moz-border-top-right-radius: 10px;border-top-left-radius: 10px">
                                <ul style="margin-top: 20px;text-align: center">
                                    <li style="display: inline;font-size: 20px;font-weight: bold;color: #FF6600">
                                        Title :
                                    </li>
                                    <li style="display: inline">
                                        <h:inputText value="#{customerCreateProfile.rec.title}" style="width: 300px" id="recTitle" required="true" requiredMessage="* Title is required"/>
                                    </li>
                                </ul>
                                <ul>
                                    <li style="list-style: none;margin-left: 200px;margin-top: 10px"><h:message for="recTitle" style="color: red" /></li>
                                </ul>
                                <div style="font-size: 20px;font-weight: bold;border: 1px;border-bottom-style:  dotted;padding : 20px 0px 5px 20px">
                                    <font style="color: #FF6600">Step 1 : Your Information </font>
                                </div>
                                <ul style="margin-top: 30px;margin-left: -50px">
                                    <li style="display: inline-block;vertical-align: top;text-align: right;width: 260px;font-weight: bold;">
                                        <ul>
                                            <li style="list-style: none;" id="name">Business name :<font style="color: red"> *</font></li>
                                            <li style="list-style: none;" id="logo">Logo :  </li>
                                            <li style="list-style: none;" id="address">Address :<font style="color: red"> *</font></li>
                                            <li style="list-style: none;" id="phone">Phone :<font style="color: red"> *</font></li>
                                            <li style="list-style: none;" id="des">Description of your business :<font style="color: red"> *</font></li>
                                            <li style="list-style: none"><h:message for="cusDes" style="color: red;font-weight: normal"/></li>
                                            <li style="list-style: none;" id="contact">Contact Person :<font style="color: red"> *</font></li>
                                            <li style="list-style: none;" id="email">Email :<font style="color: red"> *</font></li>
                                        </ul>
                                    </li>                        
                                    <li style="display: inline-block;vertical-align: top;margin-left: -15px;">    
                                        <ul>
                                            <li style="display: inline"><h:inputText value="#{customerCreateProfile.cus.name}" id="cusName" required="true" requiredMessage="* Business name is required"/></li>
                                            <li style="display: inline"><h:message for="cusName" style="color: red"/> </li>
                                        </ul>
                                        <ul>
                                            <li style="list-style: none;margin-top: 15px"><p:fileUpload value="#{customerCreateProfile.file}" mode="simple" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" /></li>   
                                        </ul>
                                        <ul style="margin-top: 15px">
                                            <li style="display: inline;"><h:inputText value="#{customerCreateProfile.cus.address}" id="cusAdd" required="true" requiredMessage="* Address is required"/></li>
                                            <li style="display: inline"><h:message for="cusAdd" style="color: red"/> </li>
                                        </ul>
                                        <ul style="margin-top: 15px">
                                            <li style="display: inline;">
                                                <h:inputText value="#{customerCreateProfile.cus.phone}" id="cusPhone" required="true" requiredMessage="* Phone is required" validatorMessage="* Phone is not valid">
                                                    <f:validateRegex pattern="^09[0-9]{8}||^01[0-9]{9}"  />
                                                </h:inputText>
                                            </li>
                                            <li style="display: inline"><h:message for="cusPhone" style="color: red"/></li>
                                        </ul>
                                        <ul style="margin-top: 15px">
                                            <li style="list-style: none"><p:editor value="#{customerCreateProfile.cus.description}" id="cusDes" width="300" required="true" requiredMessage="* Description is required"/></li>                                            
                                        </ul>
                                        <ul style="margin-top: 15px">
                                            <li style="display: inline;"><h:inputText value="#{customerCreateProfile.rec.contactPerson}" id="recContact" required="true" requiredMessage="* Contact Person is required"/></li>
                                            <li style="display: inline"><h:message for="recContact" style="color: red"/></li>
                                        </ul>
                                        <ul style="margin-top: 15px">
                                            <li style="display: inline">
                                                <h:inputText value="#{customerCreateProfile.rec.email}" id="recEmail" required="true" requiredMessage="* Email is required" validatorMessage="* Email is not valid">
                                                    <f:validateRegex pattern="([^.@]+)(\.[^.@]+)*@([^.@]+\.)+([^.@]+)"  />
                                                </h:inputText>
                                            </li>
                                            <li style="display: inline"><h:message for="recEmail" style="color: red"/></li>
                                        </ul>
                                    </li>
                                </ul> 
                                <ul style="margin-top: 20px;margin-left: 40px;border:1px;border-top-style: dotted;width: 550px">
                                    <div style="margin-top: 20px">                                            
                                        <li style="display: inline;margin-left: 450px"><h:commandLink action="#{customerCreateProfile.moveTo2()}"  value="Next"  style="border: none;color: white;font-size: 20px;background-color: #1A3665;padding: 5px 10px 5px 10px;"/></li> 
                                    </div>
                                </ul>
                                <br/>
                                <br/>
                            </li>
                        </ul>
                        <br/>
                        <br/>
                    </div>
                </h:form>
            </div>
            <div style="color: white; height: 100px;border-radius: 10px;-moz-border-radius: 10px;border: 1px;border-style: solid;border-color: white;margin-top: 20px">
                <div style="text-align: right; padding-top: 20px;padding-right: 30px">
                    Copyright © by Group 1
                    <br />
                    Project Name : Work to Worker
                    <br />
                    Member in Group : Mr Bùi Hồng Hải , Mr Nguyễn Văn Cường , Mr Nguyễn Nhất Linh , Mr Lưu Thế Thông , Mr Trần Trung Hiếu
                </div>
            </div>

        </f:view>
    </h:body>
</html>

